{template '../header'}

<div>
    <div>{$column['title']}</div>
</div>
<div>
    当前位置：
    <a href='/' class=''>首页</a> \
    {loop $parent_columns $parent_column}
    <a href="/article/index/id/{$parent_column['id']}">{$parent_column['title']}</a> \
    {/loop}
    <a href="/article/index/id/{$column['id']}">{$column['title']}</a>
</div>
<form>
    <input type="hidden" name="id" value="{$column_id}" />
    <input type="text" placeholder="搜索..." name="filter_keyword" value="{$filter_keyword}">
    <button type="submit">搜索</button>
</form>
<div>
    {loop $rows $row}
    <div>
        <a href="/article/page/id/{$row['id']}">{$row['title']}</a>
        <div>
            <a href="/article/page/id/{$row['id']}"><img src="{$row['thumb']}" /></a>
            <div>
                <a href="/article/page/id/{$row['id']}">{:msubstr($row['description'], 0, 198)}</a>
            </div>
        </div>
    </div>
    {/loop}
</div>

{template '../page'}


<div>热门推荐</div>
{loop $column_hots $column_hot}
<a href="/article/page/id/{$column_hot['id']}">
    {if $column_hot['thumb']}
    <img src="{$column_hot['thumb']}" />
    {/if}
    <div>{$column_hot['title']}</div>
</a>
{/loop}

<div>阅读排行</div>
{loop $column_pvs $column_pv}
<a href="/article/page/id/{$column_pv['id']}">
    <div>{$column_pv['title']}</div>
</a>
{/loop}

<div>最近更新</div>
{loop $newests $newest}
<a href="/article/page/id/{$newest['id']}">
    <div>•</div>
    <div>{$newest['title']}</div>
</a>
{/loop}

{template '../footer'}